POV-Ray : Newsgroups : povray.binaries.images : Earth at Dusk : Earth at Dusk Server Time
19 Aug 2024 12:21:10 EDT (-0400)
  Earth at Dusk  
From: Josh English
Date: 1 Dec 2000 18:15:31
Message: <3A283113.D206431A@spiritone.com>
This is a quick example of how I would blend the two images for Earth,
but it needs a lot of tweaking, the maps dont' line up exactly and the
terminus of the shadow is too strict, right now there's too much
contrast.

Here is the snippet of relevant code:
#declare day = texture {
  pigment {image_map {png "earth-land.png" map_type 1 interpolate 2} }
  finish { diffuse 0.3 brilliance 0.1 ambient 0}
  rotate 90*y}

#declare night = texture {
  pigment {image_map {tga "earthnight.tga" map_type 1 interpolate 2} }
  finish { ambient 0.2 }
  rotate 90*y }

sphere { 0.0, 1
         texture {radial
                  texture_map { [0.0 day ]
                                [0.3 day ]
                                [0.6 night ]
                                [1.0 night ] }
                  rotate 0*y}
          }

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message


Attachments:
Download 'nightandday.jpg' (26 KB)

Preview of image 'nightandday.jpg'
nightandday.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.